package org.example.gradle.jp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.gradle.jp.model.dto.StarWordQueryDto;
import org.example.gradle.jp.model.entity.StarWord;
import org.example.gradle.jp.model.entity.StarWord2;
import org.example.gradle.jp.model.entity.StarWordManyEntity;
import org.example.gradle.jp.model.vo.StarWordVo;

import java.util.List;

@Mapper
public interface StarWordMapper {

    int insert(StarWord record);

    int insert2(@Param("a") String a,@Param("b") Integer b,@Param("record") StarWord record);

    void batchInsert(@Param("list") List<StarWord> list);

    void batchInsert2(@Param("list") List<StarWord2> list);

    void starWordManyEntityInsertTest(@Param("starWordManyEntity") StarWordManyEntity starWordManyEntity);

    List<StarWordVo> listPage(StarWordQueryDto starWordQueryDto);

}